package GUI;

import java.awt.Image;
import java.io.IOException;

import gra.Account;
import gra.Card;

public class VirtualPlayer 
{
    public Account player;
    private VirtualCard virtualCard;
    
    public VirtualPlayer( Account player ) throws IOException
    {
        this.player = player;
        virtualCard = new VirtualCard( this.player.hand );
    }
    
    public void ustawKarty()
    {
        try 
        {
            virtualCard.ustawKarty( player.hand );
        } catch (IOException e) 
        {
            System.out.println("Brak pliku kart");
            e.printStackTrace();
        }
    }
    
    public Image zwrocObrazek( int i )
    {
        return virtualCard.cardImages[i];
    }
}

